Avoid shadowing a variable
authorPaolo Borelli <pborelli@gnome.org>
Tue, 29 Nov 2011 20:14:24 +0000 (21:14 +0100)
committerPaolo Borelli <pborelli@gnome.org>
Tue, 29 Nov 2011 20:28:30 +0000 (21:28 +0100)
Move bg_color variable to an inner scope.

gtk/gtklabel.c

index 600b6ac1a37a8a44e01ab62fb23cc69ded36bfc6..f7635213d35193c8396be4c1f3a855fe7c136e17 100644 (file)
@@ -4117,8 +4117,6 @@ gtk_label_draw (GtkWidget *widget,
 
   if (priv->text && (*priv->text != '\0'))
     {
-      GdkRGBA bg_color, fg_color;
-
       get_layout_location (label, &x, &y);
 
       context = gtk_widget_get_style_context (widget);
@@ -4138,6 +4136,7 @@ gtk_label_draw (GtkWidget *widget,
         {
           gint range[2];
           cairo_region_t *clip;
+          GdkRGBA bg_color, fg_color;
 
           range[0] = info->selection_anchor;
           range[1] = info->selection_end;